package com.workManager.service;

import com.github.pagehelper.PageInfo;
import com.workManager.pojo.TdRole;
import com.workManager.pojo.TdRoleFunction;
import com.workManager.vo.RoleFunctionVo;
import com.workManager.vo.RoleVo;

import java.util.List;
import java.util.Map;

/**
 * Created by Thinkpad on 2017/3/3 0003.
 */
public interface RoleService {
    public int add(TdRole role);
    public int update(TdRole role);
    public PageInfo<RoleVo> query(Map map);
    public  int delete(String roleId);
    public  int deleteByList(List<String> roleIds);
    public int deleteRoleFunctionByRoleId(Integer roleId);
    public int insertRoleFunction(TdRoleFunction roleFunction);
    public int insertRoleFunctionBatch(List<Map<String,Object>> list);
    public PageInfo<RoleFunctionVo> queryRoleFunction(Map map);
    public  List<String> queryRoleFunctionId(String roleId);
    List<String> getRoleFunctionCodeByUserId(Integer userId);

}
